home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-03
/
baswiz19.zip
/
BW$BAS.ZIP
/
GN5PUT.BAS
< prev
next >
Wrap
BASIC Source File
|
1993-01-29
|
1KB
|
32 lines
' +----------------------------------------------------------------------+
' | |
' | BASWIZ Copyright (c) 1990-1993 Thomas G. Hanlin III |
' | |
' | The BASIC Wizard's Library |
' | |
' +----------------------------------------------------------------------+
DECLARE SUB GN5Color (BYVAL Foreground%, BYVAL Background%)
DECLARE SUB GN5GetColor (Foreground%, Background%)
DECLARE SUB GN5Plot (BYVAL X%, BYVAL Y%)
DEFINT A-Z
SUB GN5Put (StartX, StartY, Image())
GN5GetColor Fore, Back
L = LBOUND(Image)
DX = Image(L) \ 8
DY = Image(L + 1)
DEF SEG = VARSEG(Image(L + 2))
AOfs = VARPTR(Image(L + 2))
FOR Y = 0 TO DY - 1
FOR X = 0 TO DX - 1
GN5Color PEEK(AOfs), 0
GN5Plot X + StartX, Y + StartY
AOfs = AOfs + 1
NEXT
NEXT
GN5Color Fore, Back
DEF SEG
END SUB